package com.friday.dao;


import com.alibaba.fastjson.JSONArray;
import com.alibaba.fastjson.JSONObject;
import com.friday.bean.Employee;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

@Repository
@Mapper
public interface EmployeeDao {

    JSONObject getEmployeeById(int id);

    int checkExist(int id,String password);

    JSONArray getAllEmployee();

    JSONArray getOrderEmployee();

    int addEmployee(JSONObject employee);

    int editEmployee(JSONObject employee);

    int changePassword(int id, String password);

    int delEmployeeById(int id);


}
